<!--{if $_G['cache']['plugin']['strong_ios7_mobile'] && $_GET['forumlist'] != 1 &&  $_GET['gid'] < 1}-->
<!--{eval require_once './source/plugin/strong_ios7_mobile/strong_g_set.php';}-->
	<!--{if $_GET['index'] == "true"}-->
    	<!--{template forum/home_index}-->
		<!--{exit}-->
	<!--{elseif $homeset == "1"}-->
    	<!--{eval dheader('Location:forum.php?index=true');exit;}-->
		<!--{exit}-->
	<!--{elseif $homeset == "4"}-->
		<!--{eval dheader('Location:forum.php?mod=guide&view=newthread');exit;}-->
	<!--{elseif $homeset == "3"}-->
		<!--{eval dheader("Location:$homeurl");exit;}-->
 
    <!--{else}-->	
			<!--{eval dheader('Location:forum.php?forumlist=1&mobile=2');exit;}-->
        
	<!--{/if}-->
<!--{/if}-->
<!--{template common/header}-->
		<div class="s_dbdh">
            <div class="right">
                <a href="forum.php?mod=misc&action=nav&mobile=2"><img src="./template/strong_ios7/touch/images/s_fastpost.png"/></a>
                <a href="javascript:;" onClick="menu_toogle('main_menu','user_menu');" ><img src="./template/strong_ios7/touch/images/s_plus.png" id="main_menuid"/></a>
            </div>
            <div class="s_logo">
                <a href="forum.php" ><img src="./template/olb/images/logo.png"/></a>
            </div>
        
        </div>
<div  class="g_mbx cl">
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">{lang homepage}</a><em>&rsaquo;</em><a href="forum.php?forumlist=1&mobile=2">{$_G[setting][navs][2][navname]}</a>$navigation
	</div>
</div>
<!--{hook/index_top_mobile}-->
<!-- main forumlist start -->
<div class="wp wm" id="wp">
<!--{if $announcements!= '' && $_GET['gid'] < 1}-->
<div class="wei_gg">
	<div class="wei_gg_pic">
    	<span>{echo $lang['gonggao'];}</span>
    </div>
    <div id="scrollDiv">
        <ul id="ancl">$announcements</ul>
    </div>
</div>
<!--{/if}-->
	<!--{loop $catlist $key $cat}-->
	<div class="bm bmw fl">
		<div class="subforumshow bm_h cl" href="#sub_forum_$cat[fid]">
			<span class="o"><img src="./template/strong_ios7/touch/images/collapsed_<!--{if !$_G[setting][mobile][mobileforumview]}-->yes<!--{else}-->no<!--{/if}-->.png"></span>
		<h2><a href="javascript:;">$cat[name]</a></h2>
		</div>
		<div id="sub_forum_$cat[fid]" class="sub_forum ">
			<ul>
				<!--{loop $cat[forums] $forumid}-->
				<!--{eval $forum=$forumlist[$forumid];}-->
				<li>
					<div class="sub_img">
							<!--{if $forum[icon]}-->
									$forum[icon]
								<!--{else}-->
									<a href="forum.php?mod=forumdisplay&fid={$forum['fid']}&mobile=2">
									<img src="./template/strong_ios7/touch/images/s_subpic.png" /></a>
							<!--{/if}-->
					</div>
					<div class="sub_forumpost" >
							<h4><a href="forum.php?mod=forumdisplay&fid={$forum['fid']}&mobile=2">{$forum[name]}
								<!--{if $forum[todayposts] != 0}--><em>$forum[todayposts]</em><!--{/if}-->
								</a>
							</h4>

							<span><!--{echo dnumber($forum[threads])}-->/<!--{echo dnumber($forum[posts])}-->&nbsp;&nbsp;
								<!--{if is_array($forum['lastpost'])}-->$forum[lastpost][dateline]<!--{/if}-->
							</span>

					</div>
				</li>

				<!--{/loop}-->
			</ul>
		</div>
	</div>
	<!--{/loop}-->
</div>
<!-- main forumlist end -->
<!--{hook/index_middle_mobile}-->
<script type="text/javascript">
	(function() {
		<!--{if !$_G[setting][mobile][mobileforumview]}-->
			$('.sub_forum').css('display', 'block');
		<!--{else}-->
			$('.sub_forum').css('display', 'none');
		<!--{/if}-->
		$('.subforumshow').on('click', function() {
			var obj = $(this);
			var subobj = $(obj.attr('href'));
			if(subobj.css('display') == 'none') {
				subobj.css('display', 'block');
				obj.find('img').attr('src', './template/strong_ios7/touch/images/collapsed_yes.png');
			} else {
				subobj.css('display', 'none');
				obj.find('img').attr('src', './template/strong_ios7/touch/images/collapsed_no.png');
			}
		});
	 })();
	 
</script>
<!--{if $announcements!= '' && $_GET['gid'] < 1}-->
<script>	 
	 	function AutoScroll(obj){ 
		$(obj).find("ul:first").animate({ 
		marginTop:"-25px" 
		},2000,function(){ 
		$(this).css({marginTop:"0px"}).find("li:first").appendTo(this); 
		}); 
		} 
		$(document).ready(function(){ 
		setInterval('AutoScroll("#scrollDiv")',3000) 
	}); 
</script>
<!--{/if}-->

<!--{template common/footer}-->
